package chapter01

object Test14_IF3 {
  def main(args: Array[String]): Unit = {
    println("请输入你的分数：")
    val score = scala.io.StdIn.readInt()
    val result = if (score > 100) {
      "输入有误"
    } else if (score >= 90) {
      "A"
    } else if (score >= 80) {
      "B"
    } else if (score >= 70) {
      "C"
    } else if (score >= 60) {
      "D"
    } else if (score >= 0) {
      "F"
    } else {
      "输入有误"
    }
    println(result)
  }
}
